package com.mayikt.weixin.service.impl;

import com.mayikt.base.BaseApiService;
import com.mayikt.base.BaseResponse;
import com.mayikt.entity.AppEntity;
import com.mayikt.weixin.service.WeiXinAppService;
import org.springframework.beans.factory.annotation.Value;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RestController;

@RestController
public class WeiXinAppServiceImpl extends BaseApiService<AppEntity> implements WeiXinAppService {
	@Value("${mayikt.weixin.name}")
	private String name;

	public BaseResponse<AppEntity> getApp() {
		// return setResultSuccess(new AppEntity("1111", "22222"));
		return setResultError("系统错误");
	}
	// 定义泛型T的有一定缺点：该接口统一返回一种类型

}
